<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
 <head> 
  <meta property="qc:admins" content="542536566763012535145636" /> 
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
  <title>博客</title> 
  
  <meta name="viewport" content="width=1050" /> 
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/common.css" />
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/public.css" /> 
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/dropzone.css" /> 
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/basic.css" /> 
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/page.css" />
  <link href="__PUBLIC__/home/images//favicon.ico?v=0.1" mce_href="http://www.sharesmile.cn/favicon.ico" rel="icon" type="image/x-icon" /> 
  <link href="__PUBLIC__/home/images//favicon.ico?v=0.1" mce_href="http://www.sharesmile.cn/favicon.ico" rel="shortcut icon" type="image/x-icon" /> 
  <script type="text/javascript" src="__PUBLIC__/home/js/jq.js"></script> 
  <script type="text/javascript" src="__PUBLIC__/home/js/dropzone.js"></script> 
  <script type="text/javascript" src="__PUBLIC__/home/js/jquery-3.1.1.min.js"></script> 
  <script type="text/javascript" src="__PUBLIC__/home/js/ss.js"></script> 
  <script type="text/javascript">
function getBrowser()
{  
   var OsObject = "";  
   if(navigator.userAgent.indexOf("MSIE")>0) {  
		var browser=navigator.appName;
		var b_version=navigator.appVersion; 
		var version=b_version.split(";"); 
		var trim_Version=version[1].replace(/[ ]/g,""); 
		if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE6.0") 
		{ 
			return("IE6"); 
		} 
		else if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE7.0") 
		{ 
			return("IE7"); 
		} 
		else if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE8.0") 
		{ 
			return("IE8"); 
		} 
		else if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE9.0") 
		{ 
			return("IE9"); 
		}
		else if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE10.0") 
		{ 
			return("IE10"); 
		}
   }  
   if( navigator.userAgent.indexOf("Firefox")>0){  
        return "Firefox";  
   }
   if( navigator.userAgent.indexOf("Chrome")>0){  
        return "Chrome";  
   }
   if( navigator.userAgent.indexOf("Opera")>0){  
        return "Opera";  
   } 
   if( navigator.userAgent.indexOf("Safari")>0) {  
        return "Safari";  
   }
   return 'Others';  
} 
(function(){
	vars = {};
	vars.browser = getBrowser();
	vars.hello_ketty = "heimao";
	vars.jsUrl = "http://www.sharesmile.cn/js/";
	vars.homeUrl = 'http://www.sharesmile.cn/';
	vars.siteName = '享笑网 - www.ShareSmile.cn - 享你所想,享你所笑';
	vars.publicUrl = "/public/";
	vars.showgirlUrl = "/user#showgirl";
	vars.userid = '10460';
	vars.username = '416148489@qq.com';
	vars.nickname = '阿斗';
	vars.gender = 0;
	vars.PHPSESSID = "krach1sltrpu5pa9ldu9jen4k2";
	vars.ajaxSubmiting = false;
	vars.sysImageUrl = '/public/system/';
	vars.qingImageUrl = '/public/qing/';
	vars.headImageUrl = '/public/userhead/';
	vars.postImageUrl = '/public/post/';
	vars.essayImageUrl = '/public/essay/';
	vars.jokesImageUrl = '/public/jokes/';
	vars.showgirlImageUrl = '/public/showgirl/';
	vars.photoImageUrl = '/public/photo/';
	vars.commStatUrl = '/Stat/stat';
	vars.cookieUMessage = 'HASMESSAGE'+vars.userid;
	vars.voteBlankColor = new Array( '#5DBBEF', '#95E62A', '#CC1CD9', '#FFCD10', '#F79395');
	var d = new Date();
	vars.todayTimeString = 20160122;
})();
</script> 
 </head> 
 <body>
  <script type="text/javascript" src="__PUBLIC__/home/js/ckeditor.js"></script> 
  <div class="pb-container"> 
   <div class="pb-container-main pb-after-clear"> 
   <!-- 公共头 -->
    <div class="pb-main pb-navwrap pb-after-clear"> 
            <div class="pb-iblock pb-fl pb-logo"> 
                <a href="index.html"><img src="__PUBLIC__/home/images/logo.jpg" alt="享笑网LOGO 征文比赛 有奖征文" /></a> 
            </div> 
            <div class="pb-iblock pb-fl pb-nav"> 
                <ul> <php>
                     $artile = cate_index(0);

                    </php>
                    <foreach name='artile' item="vo">
                        <li>
                            <a href="{:U('Article/article_category','id='.$vo['id'])}"><span class="l"></span>
                            <span class="m">{$vo['name']}</span>
                            <span class="r"></span>
                            </a>
                            <!-- <ul class="sub-menu">
                                <foreach name="vo[sub]" item='vl'>
                                <li><a href="">{$vl['name']}</a> 
                                    <ul class="sub-menu">    
                                         <foreach name="vl[sub]" item='v'>
                                            <li ><a href="">{$v['name']}</a></li> 
                                        </foreach>
                                    </ul>
                                </li> 
                                </foreach>
                            </ul> -->
                        </li>
                    </foreach> 
                    <!-- <li class="pb-nav-li-last"><a href="laugh.html">每日一笑</a></li>  -->
                </ul> 
            </div> 
            <php>

              $user_id = $_SESSION['user_id'];
              $user = D('User')->where(array('id'=>$user_id))->field('id,name,img')->find();
            </php>
            <div class="pb-iblock pb-fr pb-oths"> 
                 <a class="nmt" href="{:U('Index/index')}">首页</a> 
                <span class="nmt"> | </span>  
                <a class="nmt" href="{:U('Login/register')}">{$user['name']}</a>  
                <div class="pb-ucenter pb-after-clear"> 
                    <div id="uMessageCenter"> 
                        <i class="pb-icons triangle"></i> 
                        <empty name="user">
                          <a href="/user" id="uSetEntry-head"><img src="__PUBLIC__/home/images/default.gif" alt="阿斗" /></a> 
                        <else/>
                          <a href="/user" id="uSetEntry-head"><img src="__PUBLIC__/home/images/user/{$user['img']}" alt="阿斗" /></a> 
                        </empty>
                        <i class="pb-icons notice pb-hide"></i>
                         
                    </div>
                    <ul> 
                        <empty name="user">  
                          <li><a href="{:U('Login/index')}" id="uSetEntry"><i class="pb-icons my"></i> 登录</a></li> 
                          <li><a href="{:U('Login/register')}"><i class="pb-icons logout"></i> 注册</a></li>
                        <else/>
                          <li><a href="/user" id="uSetEntry"><i class="pb-icons my"></i> 个人中心</a></li> 
                          <!-- <li><a href="/user" id="uSetEntry"><i class="pb-icons my"></i> 个人中心</a></li>  -->
                        <li><a href="{:U('Login/login_out')}"><i class="pb-icons logout"></i> 退出登录</a></li>
                      </empty> 
                </div> 
                <br /> 
                <form action="" onsubmit="W.tips('暂未开放搜索功能，敬请期待!');Sys.commStat(6);return false;"> 
                    <input class="pb-search-btn" type="submit" value="" /> 
                    <input class="pb-search" type="text" /> 
                </form> 
            </div> 
    </div> 